<?php

namespace App\Models;

class Report extends Base
{

    public function publisher() {
        return $this->belongsTo(User::class, 'publish_user_id');
    }

    public function reporter() {
        return $this->belongsTo(User::class, 'user_id');
    }

    public function article() {
        return $this->belongsTo(Article::class, 'entity_id');
    }

    public function enum() {
        return $this->belongsTo(Enum::class, 'enum_id');
    }
}
